﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GoogleLogger
{
    [Serializable]
    public class BackupCal
    {
        private List<BackupEvent> Cal;
        private string name;

        public BackupCal()
        {
            Cal = new List<BackupEvent>();
        }

        public void AddEvent(string Event,DateTime StartTime, DateTime EndTime)
        {
            BackupEvent CalEvent = new BackupEvent();
            CalEvent.strEvent = Event;
            CalEvent.StartTime = StartTime;
            CalEvent.EndTime = EndTime;
            Cal.Add(CalEvent);
        }

        public string Name 
        {
            get{return name;}
            set{name = value;}
        }

        public List<BackupEvent>  Calendar
        {
            get { return Cal; }
            set { Cal = value; }
        }

    }

    [Serializable]
    public struct BackupEvent
    {
        public DateTime StartTime;
        public DateTime EndTime;
        public string strEvent;

    } 
}
